package com.es.hr.emp;

import javax.servlet.http.HttpServletRequest;

import com.es.main.LoginUserBeen;
import com.es.util.common.CommonBiz;
import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class InitShiyebuForEmpAddAction extends ActionSupport implements ServletRequestAware{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	   public String execute()throws Exception
	   {
		   CommonBiz biz = new CommonBiz((LoginUserBeen)request.getSession(false).getAttribute("loginuser"));
		   request.setAttribute("shiyebuList", biz.getCommonList("shiyebu"));
		   return "success";
	   }
	
	   public void setServletRequest(HttpServletRequest request) {
		     this.request = request;
		   }
}
